package com.sikaryofficial.adaptermq.domain.jpa;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author benjamin_5
 * @Description
 * @date 2022/10/1
 */
@Data
@Table(name = "activity_t")
public class ActivityPO implements Serializable {

    @Column(name = "activity_id")
    private Long activityId;

    /**
     * 活动名称
     */
    @Column(name = "activity_name")
    private String activityName;

    /**
     * 活动描述
     */
    @Column(name = "activity_desc")
    // @Transient #不需要映射的字段
    private String activityDesc;

    /**
     * 活动地址
     */
    @Column(name = "image_url")
    private String imageUrl;

    /**
     * 活动开始时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 1-purchase 抢购 2-lottery 抽奖 3-auction 竞拍
     */
    @Column(name = "activity_type")
    private Integer activityType;

    /**
     * 活动是否上架（生效）0-否 1-是
     */
    @Column(name = "has_effect")
    private Integer hasEffect;

    /**
     * 库存
     */
    private Integer stock;

    /** 地址ID */
    @Column(name = "address_id")
    private Long addressId;

    /** 奖品品牌 */
    @Column(name = "prize_brand")
    private String prizeBrand;

    /** 奖品名称 */
    @Column(name = "prize_name")
    private String prizeName;

    /** 奖品功能 */
    @Column(name = "prize_function")
    private String prizeFunction;

    /**
     * 积分个数
     */
    private Integer points;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private Long createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 删除版本：默认为0；删除则赋值当前记录主键ID
     */
    @Column(name = "deleted_version")
    private Long deletedVersion;

}
